package com.hoe.tsb.fraft.listener;

import com.hoe.tsb.fraft.Node;
import com.hoe.tsb.fraft.net.MessageReceive;

/**
 * <p>
 * FRaft回调
 * </p>
 *
 * @author hoe
 * @since 2022/11/22
 */
public interface FRaftReceiver extends MessageReceive, FRaftClientListener {
    /**
     * 收到消息回调
     * @param rcvBuf 收到的消息字节数组
     */
    default void onReceive(Node node, byte[] rcvBuf) {

    }
}
